package ru.urfc.portal.model.catalogs;

import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlElement;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class SpectrCatalogItemInt {

	@Id
	private Long code;
	private String text;

	// for JAXB only
	public SpectrCatalogItemInt() {
	}

	public SpectrCatalogItemInt(Long code, String text) {
		super();
		this.code = code;
		this.text = text;
	}

	@XmlElement
	public Long getCode() {
		return code;
	}
	
	@XmlElement
	public String getText() {
		return text;
	}
	
}
